﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class OpenPlane : SimpleItems_Animator,IElectricalEquipment
{
    [SerializeField] PowerSupply powerSupply;
    protected override void Awake()
    {
        base.Awake();
        powerSupply.AddEquipment(this);
    }
    public void Close()
    {
        
    }

    public void Open()
    {
        Interactive();
    }

    private void OnDestroy()
    {
        if (powerSupply!=null)
        {
            powerSupply.RemoveEquipment(this);
        }
    }
}
